package com.Maykk.Demo04;

/**
 * @ClassName Demo04
 * @Description: TODO 时间戳练习
 * @Author: MaykkSTAR@163.com
 * @DATE: 2023/4/28
 */
public class Demo04 {
    public static void main(String[] args) {
        long startTime = System.currentTimeMillis();
        myMethod();
        long endTime = System.currentTimeMillis();
        System.out.println("运行时间" + (endTime - startTime) + " MS");
    }

    private static void myMethod() {
        for (int i = 0; i < 10000; i++) {
            System.out.println(i);
        }
    }
}